import { StorageReceiptItem } from './storageReceiptItem';
export class StorageReceipt  {
    constructor() { }
    amount: number = null;
    batchNumber: number = null;
    createTime: number = null;
    creator: { id: string, name: string } = null;
    description: string = null;
    name: string = null;
    number: string = null;
    operator: { id: string, name: string } = null;
    status: string = null;
    stockOperTime: number = null;
    stockReceiptType: string = null;
    store: { id: string, name: string } = null;
    storeId: string = null;
    department: string = null;
    handler: string = null;
    inOrOut: string = 'out';
    supplierReceiver: string = null;
    warehouse_key: string = 'base-sales';
}

export type StorageViewModel = StorageReceipt & {
    storageReceiptItems: Array<StorageReceiptItem>,
    scrapCategoryQuantity:number,
    scrapQuantity:number
}